package com.zzf.concurrent.example.design.pattern.customer.producer;

/**
 * @author GaoFeng2017
 * @date 2019/9/9 16:45
 */
public class App {
    public static void main(String[] args) {
        MessageQueue<String> messageQueue = new MessageQueue<>();
        ProducerWorker producerWorker = new ProducerWorker(messageQueue);
        CustomerWorker customerWorker = new CustomerWorker(messageQueue);

        producerWorker.start();
        customerWorker.start();
    }
}
